Subtyping for F-Bounded Quantifiers and Equirecursive Types

نویسنده

  • Neal Glew
چکیده

This paper defines a notion of binding trees that provide a suitable model for second-order type systems with F-bounded quantifiers and equirecursive types. It defines a notion of regular binding trees that correspond in the right way to notions of regularity in the first-order case. It defines a notion of subtyping on these trees and proves various properties of the subtyping relation. It defines a mapping from types to trees and shows that types produce regular binding trees. It presents a set of type equality and subtyping rules, and proves them sound and complete with respect to the tree interpretation. It defines a notion of binding-tree automata and how these generate regular binding trees. It gives a polynomial-time algorithm for deciding when two automata's trees are in the subtyping relation.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Subtyping First-Class Polymorphic Components

We present a statically typed, class-based object oriented language where classes are first class polymorphic values. A main contribution of this work is the design of a type system that combines first class polymorphic values with structural equirecursive types and admits a subtyping algorithm which is arguably much simpler than existing alternatives. Our development is modular and can be easi...

متن کامل

Inheritance as an Incremental Modification Mechanism or What Like Is and Isn't Like

Types have Existential Type", 18 6.4 Dynamic type equivalence rules A common model of persistence in programming languages relies upon the use of an infinite union type for late binding to previously prepared program and data[4]. Examples of such types are Napier88's type any[19] and Amber's type dynamic[1, 7, 8]. There are problems associated with the injection and projection of open quantifie...

متن کامل

Order-Sorted Inductive Types

System F ! is an extension of system F ! with subtyping and bounded quantiication. Order-sorted algebra is an extension of many-sorted algebra with overloading and subtyping. We combine both formalisms to obtain IF ! , a higher-order typed-calculus with subtyping, bounded quan-tiication and order-sorted inductive types, i.e. data types with built-in subtyping and overloading. Moreover we show t...

متن کامل

A note on the socle of certain types of f-rings

For any reduced commutative $f$-ring with identity and bounded inversion, we show that a condition which is obviously necessary for the socle of the ring to coincide with the socle of its bounded part, is actually also sufficient. The condition is that every minimal ideal of the ring consist entirely of bounded elements. It is not too stringent, and is satisfied, for instance, by rings of ...

متن کامل

Subtyping-Based Type-Checking for System F with Induction and Coinduction

We present a type system with subtyping for a strongly normalizing, Curry-style language. Our type constructors include sum and product types, universal and existential quantifiers, inductive and coinductive types. Soundness and strong normalization are shown semantically by constructing a realizability model. We argue that the system is suitable for practical use based on our experience with a...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2012